<%@ page language="java" contentType="text/html; charset=utf-8" import="java.util.*"
    pageEncoding="utf-8"%>
    <%@page import="com.adl.hotelmanage.po.RoomInfo"%> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<script type="text/javascript" src="js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>我的酒店</title>
</head>
<body>

<div class="pd-20" style="padding-top:20px;">
 
  
 <marquee behavior="alternate"  scrollAmount=4  onmousemove="this.stop();" onmouseout="this.start()"height="230px;" >
  <p>      <font  color=black size=5px >欢迎使用302五星大酒店</font> <span class="f-14">V2.0</span>管理系统！</p>
 <img  src="/HotelManagement/images/1001.jpg" height="200" width="150"  >
 <img  src="/HotelManagement/images/1002.jpg" height="200" width="150"  >
 <img  src="/HotelManagement/images/1003.jpg" height="200" width="150"  >
  <img  src="/HotelManagement/images/1004.jpg" height="200" width="150" >
 <img  src="/HotelManagement/images/1005.jpg" height="200" width="150"  >
 <img  src="/HotelManagement/images/1006.jpg" height="200" width="150"  >
  <img  src="/HotelManagement/images/1007.jpg" height="200" width="150"  >
 <img  src="/HotelManagement/images/1008.jpg" height="200" width="150"  >
 <img  src="/HotelManagement/images/1003.jpg" height="200" width="150"  >
 
</marquee>

  <%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%> 
<%  
    java.text.SimpleDateFormat simpleDateFormat = new java.text.SimpleDateFormat(    
     "yyyy-MM-dd HH:mm:ss");    
   java.util.Date currentTime = new java.util.Date();    
   String time = simpleDateFormat.format(currentTime).toString();  
   out.println("当前时间为："+time);  
     %> 

     
  <table border="2"  >
         <h2 align="center" bgcolor="#e1ffc1">房间信息</h2>
          <tr align="center" bgcolor="#e1ffc1" > 
           <td><b>房间状态</b></td>
        <td><b>房间号</b></td>
        <td><b>房间类型</b></td>
        <td><b>房间位置</b></td>
         <td><b>价格</b></td>
         <td><b>床位数</b></td>
        <td><b>备注</b></td>
        
      </tr>
    <%
   List<RoomInfo> list = (List<RoomInfo>) request.getAttribute("roomlist"); 
   // 判断集合是否有效 
 if (list == null || list.size() < 1) { 
        out.print("没有数据！"); 
      }
 else{
	 for (RoomInfo r : list) { 
	 %>

			<tr align="center" bgcolor="#e1ffc1">
				<td><%=r.getState()%></td>
				<td><%=r.getRoomid()%></td>
				<td><%=r.getRoomtype()%></td>
				<td><%=r.getLocation()%></td>
				<td><%=r.getPrice()%></td>
				<td><%=r.getBednum()%></td>
				<td><%=r.getNote()%></td>
			</tr>
			<%}
 } %>	     
  </table>
  
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>

</body>
</html>

















